#!/bin/bash

read -p "please input the number of loops : "  n

locations=(Shanghai Beijing Suzhou Wuxi Xuzhou)

num=${#locations[*]}

for ((i=1;i<=$n;i=i+1))
do 	
	echo  "$i , ${locations[ ($RANDOM)% ($num)]}" >> filename
done
